package com.coment.message.account;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/// 消费信息
@ToString
@Getter
@AllArgsConstructor
public class PayInfo {
    /// 消费者id
    private final Integer consumerId;

    /// 货币类型
    private final int currencyType;

    /// 金额
    private final double value;

    /// 备注
    private final String comment;

    public PayInfo(Integer consumerId, int currencyType, double value, String comment) {
        this.consumerId = consumerId;
        this.currencyType = currencyType;
        this.value = value;
        this.comment = comment;
    }

    // ---------------------------------------
    /// 是否支付成功
    @Setter
    private boolean pay;

    /// 信息
    @Setter
    private String message;
}
